<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
      layout:decorator="base/layout.html">

<!-- start: Content -->
<div layout:fragment="content" class="main sidebar-minified">

    <div class="row">
        <div class="col-lg-12">
            <ol class="breadcrumb">
                <li><i class="fa fa-home"></i><a th:href="@{../infoManage/indexTotal}">首页</a></li>

            </ol>
        </div>
    </div>


    <div class="row">
        <div class="col-lg-12">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h2><i class="fa fa-indent red"></i><strong>查询信息</strong></h2>
                </div>
                <div class="panel-body">
                    <form id="modularForm" th:action="@{../infoManage/indexTotal}" method="post"
                          class="form-horizontal " role="form">


                        <div class="form-group">
                            <label class="col-lg-2 col-md-2 col-sm-12 control-label">标题</label>

                            <div class="col-lg-10 col-md-10">
                                <div class="row">
                                    <div class="col-lg-2 col-md-2">
                                        <input type="text" id="title" name="title" class="form-control" th:value="${queryMap['title']}">
                                    </div>


                                    <label class="col-lg-2 col-md-2 col-sm-12 control-label">发布时间</label>
                                    <div class="col-lg-2 col-md-2">
                                        <input type="text" class="form-control date-picker" id="beginPublish" name="beginPublish" readonly th:value="${queryMap['beginPublish']}" placeholder="起始时间">

                                    </div>
                                    <label class="col-lg-1 col-md-1 col-sm-1 control-label" style="text-align: center">-</label>
                                    <div class="col-lg-2 col-md-2">
                                        <input type="text" class="form-control date-picker" id="endPublish" name="endPublish" readonly th:value="${queryMap['endPublish']}" placeholder="终止时间">
                                    </div>

                                    <button id="submitBtn" type="submit" class="btn btn-sm btn-success"><i class="fa fa-dot-circle-o"></i> 查询</button>
                                    <button id="resetBtn" type="button" class="btn btn-sm btn-danger"><i class="fa fa-ban"></i> 重置</button>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div><!--.col-->
    </div><!--.row-->

    <div class="row">
        <div class="col-lg-6">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h2><i class="fa fa-table red"></i><span class="break"></span><strong>信息发布</strong></h2>
                    <div class="panel-actions">
                        <a th:href="@{../infoManage/infoMore}">更多</a>
                        <a href="table.html#" class="btn-minimize"><i class="fa fa-chevron-up"></i></a>
                        <a href="table.html#" class="btn-close"><i class="fa fa-times"></i></a>
                    </div>
                </div>
                <div class="panel-body" >
                    <table class="table table-striped">
                        <thead>
                        <tr>
                            <th>标题</th>
                            <th>发布时间</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr th:each="infoManage,state  : ${infoManageList}"th:if="${infoManage.type==1}">
                            <td th:onclick="'layerOpen(\'toInfoManageDetail?id='+${infoManage.id}+'\')'"><a
                                     th:text="${infoManage.title}"></a></td>
                            <td th:text="${#dates.format(infoManage.entertime,'yyyy-MM-dd ')}"></td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div><!--/col-->

        <div class="col-lg-6">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h2><i class="fa fa-table red"></i><span class="break"></span><strong>政策文件</strong></h2>
                    <div class="panel-actions">
                        <a th:href="@{../infoManage/policyDocumentMore}">更多</a>
                        <a href="table.html#" class="btn-minimize"><i class="fa fa-chevron-up"></i></a>
                        <a href="table.html#" class="btn-close"><i class="fa fa-times"></i></a>
                    </div>
                </div>
                <div class="panel-body">
                    <table class="table table-striped">
                        <thead>
                        <tr>
                            <th>标题</th>
                            <th>发布时间</th>

                        </tr>
                        </thead>
                        <tbody>
                        <tr th:each="infoManage,state  : ${selectPolicyDocumentList}"th:if="${infoManage.type==2}">
                            <td th:onclick="'layerOpen(\'toPolicyDocumentDetail?id='+${infoManage.id}+'\')'"><a
                                    th:text="${infoManage.title}"></a></td>
                            <td th:text="${#dates.format(infoManage.entertime,'yyyy-MM-dd ')}"></td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div><!--/col-->


    </div><!--/row-->

    <div class="row">
        <div class="col-lg-6">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h2><i class="fa fa-table red"></i><span class="break"></span><strong>校企活动</strong></h2>
                    <div class="panel-actions">
                        <a th:href="@{../infoManage/schoolEnterpriseMore}">更多</a>
                        <a href="table.html#" class="btn-minimize"><i class="fa fa-chevron-up"></i></a>
                        <a href="table.html#" class="btn-close"><i class="fa fa-times"></i></a>
                    </div>
                </div>
                <div class="panel-body">
                    <table class="table table-striped">
                        <thead>
                        <tr>
                            <th>标题</th>
                            <th>发布时间</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr th:each="infoManage,state  : ${selectSchoolList}"th:if="${infoManage.type==3}">
                            <td th:onclick="'layerOpen(\'toInfoManageDetail?id='+${infoManage.id}+'\')'"><a
                                    th:text="${infoManage.title}"></a></td>
                            <td th:text="${#dates.format(infoManage.entertime,'yyyy-MM-dd ')}"></td>
                        </tr>
                        </tbody>
                    </table>

                </div>
            </div>
        </div><!--/col-->


    </div><!--/row-->


    <script>

        $(document).ready(function () {


            //加载时间控件
            setDatePicker("#beginPublish");
            setDatePicker("#endPublish");
        });

        //重置按钮
        $("#resetBtn").on("click", function () {
            $("#title").val("");
            $("#beginPublish").val("");
            $("#endPublish").val("");
        });


    </script>


</div>
<!-- end: Content -->






